home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 25 / Mac Magazin and MacEasy Magazine CD - Issue 25.iso / Spiele & Edutainment / crafty-fat folder / crafty.faq < prev    next >
Internet Message Format  |  1996-07-24  |  10KB

  1. From amungal@VNET.IBM.COMMon Jun 17 10:24:48 1996
  2. Date: Mon, 17 Jun 96 11:13:22 EDT
  3. From: amungal@VNET.IBM.COM
  4. To: hyatt@cis.uab.edu
  5. Subject: Crafty FAQ
  6.  
  7. Bob, I've updated the FAQ.  Please place it on the ftp site.
  8. Note:  the ftp site has a "crafty.faq" and a "crafty.FAQ".  Please delete the
  9.        .FAQ version, and replace the .faq version with the following:
  10.  
  11. ** Start of Crafty FAQ **
  12. Frequently asked questions (FAQ) on Crafty.
  13. Last modified on 1996.06.17
  14. Send corrections/additions/comments to:
  15. Anil Mungal (amungal@vnet.ibm.com)
  16.  
  17. -----
  18. [1] What is Crafty?
  19. [1.1] What platforms can Crafty run on?
  20. [1.2] What is Crafty's rating/strength?
  21. [1.3] Where can I get Crafty?
  22. [1.4] How do I build Crafty?
  23. [1.5] How do I build Crafty's Book?
  24. [1.6] How can I maximize Crafty's performance?
  25. [1.7] What are "tablebases" and how do I use 'em?
  26. [1.8] How can I get a graphical interface with Crafty?
  27. [1.9] How can I use both Crafty and XBoard to analyze positions/games?
  28. -----
  29. [1] What is Crafty?
  30.  
  31. Crafty is a chess program written by Bob Hyatt (hyatt@cis.uab.edu).
  32. It is modeled after Cray Blitz (also written by Bob).
  33.  
  34. Crafty has the following features:
  35. - written in C
  36. - can be compiled with the GNU C compiler on various platforms
  37. - has a customizable opening book
  38. - supports tablebases (Steven Edward's endgame database)
  39. - text interface
  40.  
  41. Crafty is a work in progress, and is frequently updated/enhanced by Bob.
  42. -----
  43. [1.1] What platforms can Crafty run on?
  44.  
  45. The decision to write Crafty so that it compiles with the GNU C compiler
  46. allows it to run on many platforms without the hassle of porting.
  47. (Thanks Bob)
  48.  
  49. Currently Crafty runs on:
  50.  
  51. - DEC alpha running OSF/1-Digital Unix
  52. - any Cray-1 compatible architecture including XMP, YMP, C90, etc.
  53. - HP workstation running HP_UX operating system (unix)
  54. - PC running DOS, Windows, or OS/2 Warp, using DJGPP port of gcc to compile
  55. - RS/6000 running AIX (unix)
  56. - Sun SparcStation running Solaris (SYSV/R4) Unix
  57. - Sun SparcStation running SunOX (BSD) Unix
  58. - Any architecture running the Linux operating system
  59. - Microsoft Win95/WinNT, when compiled with Microsoft Visual C++
  60. - Macintosh and other MacOS-compatible computers
  61.  
  62. Storage requirements range from 1Mb (small book and no tablebase) to 60Mb
  63. (largest book and no tablebases) to 300Mb (largest book and all tablebases).
  64. -----
  65. [1.2] What is Crafty's rating/strength?
  66.  
  67. Crafty's strength is directly dependant upon processor speed, hash table size,
  68. size and content of it's opening book, and it's use of an endgame database.
  69. Versions of Crafty running on ICC and FICS have ratings around 2500-2700.
  70. This does not necessarily mean that Crafty will perform at this level
  71. under tournament conditions.
  72.  
  73. Crafty's computational power in nodes/sec has been measured as follows:
  74.  
  75.   Platform                                      Nodes/sec
  76.   --------                                      ---------
  77.   DEC alpha running OSF/1-Digital Unix             75,000
  78.   Cray-1 XMP, YMP, C90, etc.                       ??????
  79.   HP workstation running HP_UX operating system    35,000
  80.   80X86 architecture running LINUX (unix)          30,000 (P5/133)
  81.   Pentium 100 PC                                   24,000
  82.   Pentium Pro 200 PC                               75,000
  83.   RS/6000 running AIX (unix)                       ??????
  84.   Sun SparcStation running Solaris (SYSV/R4) Unix  30,000 (Sparc-20)
  85.  
  86. According to the Louget Chess test, Crafty has been given the following ratings:
  87.  
  88.         Platform  Hash table  Louget rating (comparable to FIDE rating)
  89.         ========  ==========  =============
  90. Crafty v9.21    PP200         56 MB       2395
  91. Crafty v9.21    PP150         56 MB       2365
  92. Crafty v9.21    P133         14 MB       2305
  93. Crafty v9.21    P90          7 MB       2235
  94.  
  95. Where the platforms were:
  96. PP200 = Pentium Pro 200 Mhz, 16+256KB internal caches, Aurora Intel motherboard
  97. PP150 = Pentium Pro 150 Mhz, 16+256KB internal caches, Asustek motherboard
  98. P133 = Pentium 133 Mhz, 256 KB pipeline burst synchronous L2 cache
  99. P90 = Pentium 90 Mhz, 256 KB asynchronous cache (Intel Zappa, Triton Chipset)
  100.  
  101. For more info on the Louget Chess test, you can contact:
  102. Frederic Louguet (louguet@worldnet.net)
  103. ----
  104. [1.3] Where can I get Crafty?
  105.  
  106. You can get Crafty by anonymous FTP at:  ftp://willis.cis.uab.edu/pub/hyatt
  107.  
  108. Here is a description of the files that you will probably see.
  109.  
  110. read.me       : Read me file that Bob updates
  111. crafty.exe    : PC DOS executable. (needs DPMI)
  112. craftyt.exe   : PC DOS executable with tablebases support. (needs DPMI)
  113. crafty.faq    : this file
  114. crafty.linux  : Linux executable
  115. crafty.sun    : Sun Sparc-20 executable
  116. crafty.zip    : Crafty source code
  117. crafty.tar.Z  : Crafty source code
  118. crafty.tar.gz : Crafty source code
  119. cwsdpmi.exe   : DPMI provider
  120. large1.zip    : Large PGN file used to create an opening book (1/4)
  121. large2.zip    : Large PGN file used to create an opening book (2/4)
  122. large3.zip    : Large PGN file used to create an opening book (3/4)
  123. large4.zip    : Large PGN file used to create an opening book (4/4)
  124. medium.zip    : Medium PGN file used to create an opening book
  125. small.zip     : Small PGN file used to create an opening book
  126. start.zip     : Tiny PGN file used to create an opening book
  127. probs.Z       : A test suite of chess problems
  128. wcrafty.exe   : Windows executable.
  129. wcraftyt.exe  : Windows executable with tablebases support.
  130.  
  131. The Macintosh port of Crafty is available from <ftp://ftp.limunltd.com/crafty/>.
  132. The Mac versions are supported from <http://www.limunltd.com/crafty/>.
  133.  
  134. -----
  135. [1.4] How do I build Crafty?
  136.  
  137. If you wish to build Crafty for yourself, you need a copy of the source
  138. and the GNU C compiler (or the djgpp compiler for DOS) to compile.
  139.  
  140.    a) Unzip/uncompress the source code.
  141.  
  142.    b) Follow the instructions in the Makefile.  You will probably have to:
  143.       - comment/uncomment sections based on your hardware platform.
  144.       - edit the directory paths.
  145.       - add whatever optimization flags that you want.
  146.  
  147.    c) type make
  148.  
  149. -----
  150. [1.5] How do I build Crafty's Book?
  151.  
  152. You need an executable version of Crafty and a PGN file to build it's book.
  153. Choose between large (unzip large1.zip, large2.zip, large3.zip, large4.zip
  154. and append them into one file), medium (unzip medium.zip), or small.zip
  155. (unzip small.zip).
  156. Large produces a 90Mb-60Mb opening database with 100K GM games; medium produces
  157. a 30Mb database, and small will produce a 1Mb database. Note that you will
  158. need at least double this space to create the files, since temporary files
  159. are written to disk, and then later deleted.  Use the following commands to
  160. build the book:
  161.  
  162.     crafty
  163.     book create <filename> 60
  164.     quit
  165.  
  166. <filename> should be replaced by the PGN filename that is created when you unzip
  167. the book file of your choice.
  168.  
  169. Start.zip contains a small file that is used to create books.bin.
  170. books.bin is created as follows:
  171.  
  172.     crafty
  173.     books create start.pgn 60
  174.     quit
  175.  
  176. This file contains suggested openings that fit Crafty's "open" style of
  177. play better.  You can edit/modify this at will, and it takes a fraction of
  178. a second to re-build after modification, so the big book file can be left
  179. alone.
  180.  
  181. Note that the "60" is arbitrary, and is used to cut book lines off at roughly
  182. 60 plies.  You "can" say 500, so that the entire games will be stored,
  183. but you need even more disk space.  You can also reduce this number to 30
  184. (15 moves for each side) to conserve disk space as needed, since the book
  185. will contain far fewer positions.
  186. -----
  187. [1.6] How can I maximize Crafty's performance?
  188.  
  189.    a) Compile with different combinations of the following options:
  190.       -DCOMPACT_ATTACKS, and -DUSE_SPLIT_SHIFTS.  Then check the performance
  191.       of Crafty.  The best test is to simply let it search to a fixed depth
  192.       (say sd=8 for example) from the opening position and pick the compiler
  193.       /optimizer options that minimize this time.  Pick SD=n so that the search
  194.       takes at least 2 minutes.
  195.  
  196.    b) Increase the size of hash and hashp based on the following
  197.       observations:
  198.       - hash is more important that hashp.  the only guidance is that
  199.         you don't want to make hash so large things slow down due to
  200.         excessive paging or swapping.
  201.       - there's a compile option -DFAST.  if you use this, crafty won't
  202.         report any hashing statistics, making it harder to decide when
  203.         to make things bigger.
  204. -----
  205. [1.7] What are tablebases and how do I use 'em?
  206.  
  207. tablebases are endgame databases distributed freely by Steven Edwards
  208. (sje@mv.mv.com).  If you are downloading an executable, for dos you'll
  209. want craftyt.exe, and for Win95/WinNT, you'll want wcraftyt.exe.  If
  210. you compile your own, -DTABLEBASES will do the trick.
  211.  
  212. Once you have an executable that expects tablebases, you typically
  213. put them in a sub-directory TB that should be in the directory where
  214. you normally run crafty.  You can change this by editing the Makefile
  215. and changing TBDIR to point to where you want 'em.
  216.  
  217. Next, you need the tablebase files.  These are available from ftp.onenet.net
  218. and other ftp sites.  The files are named like this:  KBNK.tbb and KBNK.tbw
  219. for the KBN vs K tablebases.  On some ftp machines the "." is replaced by a
  220. "_".  after downloading them, rename them to replace the _ by . or crafty
  221. will not recognize them.
  222.  
  223. The complete set takes about 260Mb, for all 4-man endings.  We are working
  224. on new ones for frequently encountered endings like KRP vs KR.  These will
  225. be made available as they are completed.
  226.  
  227. Note that these databases are "mate in n" type databases, so you'll see
  228. some interesting mate announcements from Crafty, with Mate in 30 a very
  229. common occurrence.  :)
  230. -----
  231. [1.8] How can I get a graphical interface with Crafty?
  232.  
  233. On Unix systems, you can use XBoard with Crafty.  On Windows systems, you
  234. can use WinBoard.  For more information on XBoard and WinBoard, check out:
  235. http://www.research.digital.com/SRC/personal/Tim_Mann/chess.html
  236. -----
  237. [1.9] How can I use both Crafty and XBoard to analyze positions/games?
  238.  
  239. It is now possible to use XBoard and Crafty together to perform
  240. interactive analysis of positions and stored (PGN, etc.) games.
  241.  
  242. To do this, you need a recent version of Crafty (9.25 or up) and
  243. a set of patches to XBoard called XbKit (version 5 or up).
  244.  
  245. XbKit is available from:
  246. http://fly.hiwaay.net/~frankm/xbkit.html
  247. ftp://206.202.0.11/frankm
  248.  
  249. More detailed instructions can be found at the XbKit
  250. Web site, or in the README.XbKit found at the FTP site.
  251.  
  252. Send questions/comments about XbKit to:
  253. frankm@hiwaay.net
  254. -----
  255. ** End of Crafty FAQ **
  256.  
  257.  
  258.